package org.dromara.wms.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 测试主从对象 wms_order_line
 *
 * @author wenrui Su
 * @date 2024-04-24
 */
@Data
@TableName("wms_order_line")
public class WmsOrderLine implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  private Long id;

  @TableId(value = "line_id")
  private Long lineId;

  private Long productId;
  private String batchCode;
  private String measureUnit;
  private Double price;
  private Double quantity;
  private Long whId;
  private Long areaId;
  private Double totalMoney;
  private Double discountMoney;
  private Double costMoney;
  private Date expireDate;

  //  ==============================其他字段
  @JsonInclude(JsonInclude.Include.NON_EMPTY)
  @TableField(exist = false)
  private String productName;

  @JsonInclude(JsonInclude.Include.NON_EMPTY)
  @TableField(exist = false)
  private String whName;

  @JsonInclude(JsonInclude.Include.NON_EMPTY)
  @TableField(exist = false)
  private Double stockQuantity;
}
